<?php
/**
*btc列表
*/

require_once 'common.inc.php';
error_reporting(0);
$matches=parse_url($_SERVER['HTTP_REFERER']);
//$url=$matches['scheme'].'://'.$matches['host'].'/';
$argvs=array(6,5,0,0,33);
if('list'==$action)
{
	include_once MCC_ROOT.'/templates/msystem/shutdown.htm';
}
elseif('close'==$action)
{
	/*
	$sql="select dsip from msys_ds";
	$query=$db->query($sql);
	$ds=$db->fetch_array($query);
	$rs['ip']=$ds['dsip'];
	$rs['port']=$ds['dsport'];
	
	$sql="select btcip,port from msys_btc";
	$query=$db->query($sql);
	$btc=$db->fetch_array($query);
	$rs[]=$btc;
	*/
	$sql="select password from msys_members where username='$frommsys_user'";
	$query=$db->query($sql);
	$password=$db->fetch_array($query);
	$password=$password['password'];

    $psw=md5($psw);
	if($psw==$password)
	{
		$rs[0]['ip']='211.162.130.49';
		$rs[0]['port']='3303';
		$num=count($rs);
		for($i=0;$i<$num;$i++)
		{		
			$reginfo=total_order($argvs[0],$argvs[1],$argvs[2],$argvs[3],$argvs[4],$para,$rs['ip']);
			//print $reginfo.'<br>';
			sendInfo($reginfo,$rs[$i]['ip'],$rs[$i]['port']);
		}

	adminmsg('系统已经关闭','shutdown.inc.php?action=list');
	}else{
	adminmsg('用户名密码不符','shutdown.inc.php?action=list');
	}
}
?>